package com.hao.shirojwt.util.thread;


import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.Future;

public interface ThreadPoolService {

    void execute(Runnable runnable);

    Future<?> submit(Runnable runnable);

    <T> Future submit(Callable<T> callable);

    <T> List<Future<T>> invokeAll(ArrayList<Callable<T>> callables);
}
